using System;
using System.Collections.Generic;
using System.Text;

namespace Ddb_Demo.SQL
{
    public class SqlSentence
    {
        public string action;
        public string[] aims = new string[10];
        public string[] fields = new string[10];
        public string[] condi = new string[10];
        public Condition[] condition;
        public SqlSentence()
        {
            
        }


        public void setConditions(string[] con)
        {
            for (int i = 0; i < con.Length; i++)
            {
                //condition[i].Condition = con[i];
            }
        }
        public void clearCondition(int i) 
        {
            this.condition[i] = null;
        }

        private string rebuild(string index, string[] str)
        {
            string newstr = "";
            for (int i = 0; i < str.Length - 1; i++)
            {
                
            }
            return newstr;
        }
        public string rebuild()

        { 
            string sql = "";
            return sql;
        }

    }
    public class Condition
    {
        string s;
        int op;//>:1; <:2; >=:3 ; <=:4; =:5
        string value;
        
    }
    
    

}
